package com.qf.staff.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.qf.staff.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface CategoryMapper extends MPJBaseMapper<Category> {
    @Update("update yu_category set status = #{status}  where id = #{id} ")
    int updateByStatus(Category category);

    int updateByAllStatus(@Param("ids") List<Integer> ids, @Param("status") int status);
}